package com.ajhlp.spring_modules.schedule;

import org.apache.log4j.Logger;

public class TaskBean {
	
	private Logger logger = Logger.getLogger(getClass());
	
	private String detail = "";
	
	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public TaskBean(){}
	
	public TaskBean(String detail){
		this.setDetail(detail);
	}

	public void doTask(){
		
		logger.info("task is started");
		
		System.out.println("my task detail is : ["+this.getDetail()+"]");
		
		logger.debug("task is finished");
	}
}
